﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Lesson
{
    public partial class accept_sort_grammar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string area = Request.Form["area"];

            if (area.IndexOf(',') != -1)
            {
                string[] split = new string[area.Split(',').Length];
                split = area.Split(',');
                for (int i = 0; i < split.Length; i++)
                {
                    new TblLessonGrammarController().Update(int.Parse(split[i]), null, null, null, null, null, null, i);
                }
            }
        }
    }
}